Now, groups can retrieve a list of the contacts in that group. I probably should...
[adiumx.git] / Plugins / Purple Service / CBOscarService.m
blob8c4fa15dbf5371eb593d97913c82f43b0b5df9ae
1 /* 
2  * Adium is the legal property of its developers, whose names are listed in the copyright file included
3  * with this source distribution.
4  * 
5  * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6  * General Public License as published by the Free Software Foundation; either version 2 of the License,
7  * or (at your option) any later version.
8  * 
9  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
11  * Public License for more details.
12  * 
13  * You should have received a copy of the GNU General Public License along with this program; if not,
14  * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15  */
17 #import "AIPurpleOscarAccountViewController.h"
18 #import "CBOscarService.h"
19 #import "DCPurpleOscarJoinChatViewController.h"
20 #import <Adium/AIStatusControllerProtocol.h>
21 #import <AIUtilities/AIStringAdditions.h>
23 /*!
24  * @class CBOscarService
25  * @brief Superclass for ESAIMService and ESICQService
26  *
27  * This service is abstract and should not be used directly.
28  */
29 @implementation CBOscarService
31 //Account Creation
32 - (AIAccountViewController *)accountViewController{
33     return [AIPurpleOscarAccountViewController accountViewController];
36 - (DCJoinChatViewController *)joinChatView{
37         return [DCPurpleOscarJoinChatViewController joinChatView];
40 //Service Description
41 - (NSString *)serviceClass{
42         return @"AIM-compatible";
44 - (NSCharacterSet *)allowedCharacters{
45         return [NSCharacterSet characterSetWithCharactersInString:@"+abcdefghijklmnopqrstuvwxyz0123456789@._- "];
47 - (NSCharacterSet *)allowedCharactersForUIDs{
48         return [NSCharacterSet characterSetWithCharactersInString:@"+abcdefghijklmnopqrstuvwxyz0123456789@._- "];       
50 - (NSCharacterSet *)ignoredCharacters{
51         return [NSCharacterSet characterSetWithCharactersInString:@" "];
53 - (AIServiceImportance)serviceImportance{
54         return AIServiceUnsupported;
57 #pragma mark Must be subclassed
58 - (NSString *)serviceCodeUniqueID{
59         return @""; /* Subclasses should return a value starting with libpurple-oscar */
61 - (NSString *)shortDescription{
62         return @"";
64 - (NSString *)longDescription{
65         return @"";
67 - (NSString *)serviceID{
68         return @"";
71 - (NSString *)normalizeChatName:(NSString *)inChatName
73         return [inChatName compactedString];
76 #pragma mark Statuses
77 /*!
78  * @brief Register statuses
79  */
80 - (void)registerStatuses{
81         [[adium statusController] registerStatus:STATUS_NAME_AVAILABLE
82                                                          withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_AVAILABLE]
83                                                                           ofType:AIAvailableStatusType
84                                                                   forService:self];
86         [[adium statusController] registerStatus:STATUS_NAME_AWAY
87                                                          withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_AWAY]
88                                                                           ofType:AIAwayStatusType
89                                                                   forService:self];
90         
91         [[adium statusController] registerStatus:STATUS_NAME_INVISIBLE
92                                                          withDescription:[[adium statusController] localizedDescriptionForCoreStatusName:STATUS_NAME_INVISIBLE]
93                                                                           ofType:AIInvisibleStatusType
94                                                                   forService:self];
97 @end